package com.his.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.his.dao.jpa.MxjOperationGradeDAO;
import com.his.dao.jpa.MxjOperationTypeDAO;
import com.his.vo.HisCostVo;

@Service
@Transactional
public class HisCostService {
	@Autowired
	private MxjOperationTypeDAO operationTypeDAO;
	@Autowired
	private MxjOperationGradeDAO OperationGradeDAO;
	
	public double getCostss(HisCostVo costVo){
		double lxcost=operationTypeDAO.getlxCost(costVo.getLxNo());
		double djcost=OperationGradeDAO.getdjCost(costVo.getDjNo());
		return lxcost+djcost;
	}
}
